\begin{answer}

Code is as follows
    \lstinputlisting[language=Python]{files/p05_kmeans.py}

    Please see Figure \ref{fig:compressed} for the compressed image.

    \begin{figure}[htbp]
        \centering
        \includegraphics[width=0.7\linewidth]{pics/compressed.png}
        \caption{Compressed}
        \label{fig:compressed}
    \end{figure}
\end{answer}
